using ECETCentralController.Communication;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MsnpControl : MonoBehaviour
{
    private string Ip = "192.168.1.99";
    private int port = 2430;

    public Button play;
    public Button pause;
    public Button resume;

    void Start()
    {
        play.onClick.AddListener(() => {
            UDPSender.SendString(Ip,port,"play");
        });
        pause.onClick.AddListener(() => {
            UDPSender.SendString(Ip, port, "pause"); 
        });
        resume.onClick.AddListener(() => {
            UDPSender.SendString(Ip, port, "resume");
        });
    }

    void Update()
    {
        
    }
}
